//
//  TableViewCell.m
//  1243
//
//  Created by ym on 16/3/24.
//  Copyright © 2016年 1243. All rights reserved.
//

#import "TableViewCell.h"
#define WIDTH [[UIScreen mainScreen] bounds].size.width
#define NORMWIDTH [[UIScreen mainScreen] bounds].size.width / 375
#define HEIGHT [[UIScreen mainScreen] bounds].size.height
#define NORMHEIGHT [[UIScreen mainScreen] bounds].size.height / 667

@implementation TableViewCell
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.image  = [[UIImageView alloc] init];
        [self.contentView addSubview:self.image];
        //  self.cover_s.backgroundColor = COLOUR;
        
        self.label = [[UILabel alloc] init];
        [self.contentView addSubview:self.label];
        // self.name.backgroundColor = [UIColor redColor];
        
    }
    
    return self;
}

- (void)layoutSubviews{
    [super layoutSubviews];
   // self.image.frame = CGRectMake(5, 5,  self.contentView.frame.size.width/ 3.5+30, self.contentView.frame.size.height - 10);
    
    // self.label.frame = CGRectMake(self.image.frame.size.width +5+20, 5, self.contentView.frame.size.width - self.image.frame.size.width, 40);
   self.label.frame = CGRectMake(100*NORMWIDTH, 14*NORMHEIGHT, 150*NORMWIDTH, 30*NORMHEIGHT);
    self.image.frame = CGRectMake(20, 5, 60*NORMWIDTH, self.contentView.frame.size.height - 10
                                  );
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
